package com.ky.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Post implements Serializable {
    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "post_id", type = IdType.AUTO)
    private Integer postId;

    /**
     * 发布动态的用户ID
     */
    private Integer userId;

    /**
     * 动态内容
     */
    private String content;

    /**
     * 动态图片url
     */
    private String imageUrl;

    /**
     * 点赞数量
     */
    private Integer likesCount;

    /**
     * 评论数量
     */
    private Integer commentsCount;

    /**
     * 发布时间
     */
    private Date timestamp;


}
